import java.util.Arrays;


public class Test {
    public static boolean fun(int[] arrays){
        boolean f = false;
        for (int i = 0; i <arrays.length-2 ; i++) {
            if((arrays[i]%2!=0)&&(arrays[i+1]%2!=0)&&(arrays[i+2]%2!=0)){
                f = true;
            }
        }
        return f;
    }
    public static void main(String[] args) {
        int[] arrays={3,5,4,2,1,3,5};
        boolean f = fun(arrays);
        System.out.println(f);
    }
}
/*
public class Test {
    public static int fun(int[] arrays){
        Arrays.sort(arrays);
        return arrays.length/2;
    }
    public static void main(String[] args) {
        int[] ret =new int[]{2,3,2,3,2};
        int sum=fun(ret);
        System.out.println(ret[sum]);
    }
}
*/
